import request from '@/utils/request'

const getway = '/xmtsc-api'

export function filter_list(data) {
  return request({
    url: getway+'/api/syscode/findBaseData',
    method: 'get',
    params : data
  })
}

// 获取所以职位列表
export function list(data) {
  return request({
    url: getway+'/api/employmentPosition/findAllList',
    method: 'get',
    params : data
  })
}

/**
 * 收藏职位
 * @param {*} data
 */
export function collection(data) {
  return request({
    url: getway+'/api/employmentPosition/addPositionCollection',
    method: 'post',
    data
  })
}

/**
 * 申请职位
 */
export function addPositionApplied(data) {
  return request({
    url: getway+'/api/employmentPosition/addPositionApplied',
    method: 'post',
    data : data
  })
}

/**
 * 获取推荐职位列表
 */
export function findRecommendedPositionList(data) {
  return request({
    url: getway+'/api/employmentPosition/findRecommendedPositionList',
    method: 'get',
    params : data
  })
}

/**
 *批量收藏职位
 *
 * @export
 * @param {*} data
 * @return {*}
 */
export function addBatchPositionCollection(data) {
  return request({
    url: getway+'/api/employmentPosition/addBatchPositionCollection',
    method: 'post',
    data : data
  })
}

/**
 *批量申请职位
 *
 * @export
 * @param {*} data
 * @return {*}
 */
export function addBatchPositionApplied(data) {
  return request({
    url: getway+'/api/employmentPosition/addBatchPositionApplied',
    method: 'post',
    data : data
  })
}
